<!DOCTYPE html>
<html>
<head>
    <title>便签</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: transparent;
            font-family: 'Microsoft YaHei', sans-serif;
        }

        .note-container {
            width: 100%;
            height: 100vh;
            background: rgba(255, 255, 204, 0.95);
            display: flex;
            flex-direction: column;
        }

        .title-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 10px;
            background-color: rgba(65, 105, 225, 0.1);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            -webkit-app-region: drag;
            position: relative;
        }

        #noteTitle {
            border: none;
            background: transparent;
            font-size: 16px;
            flex: 1;
            margin-right: 30px;
            text-align: center;
            padding: 5px;
            -webkit-app-region: no-drag;
        }

        .close-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff4444;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.2s;
            -webkit-app-region: no-drag;
            z-index: 1000;
        }

        .title-bar:hover .close-btn {
            opacity: 1;
        }

        .close-btn:hover {
            background: #ff6666;
            transform: translateY(-50%) scale(1.1);
        }

        .note-content {
            flex: 1;
            padding: 15px;
            font-size: 16px;
            resize: none;
            border: none;
            background: transparent;
            outline: none;
            font-family: inherit;
            -webkit-app-region: no-drag;
            line-height: 1.5;
        }

        #noteTitle:focus, .note-content:focus {
            outline: none;
        }
    </style>
</head>
<body>
    <div class="note-container">
        <div class="title-bar">
            <input type="text" id="noteTitle" placeholder="标题">
            <button class="close-btn" onclick="closeNote()">✕</button>
        </div>
        <textarea class="note-content" placeholder="在这里输入内容..."></textarea>
    </div>
    <script src="js/note.js"></script>
</body>
</html> 